package net.youdi.gateway.controller;

import net.youdi.gateway.handler.SensitiveCacheHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author:scl
 * @date:2019-10-14 15:11
 * @description
 */
@RestController
@RequestMapping("sensitive")
@CrossOrigin(allowCredentials = "true",allowedHeaders = "*", methods = {RequestMethod.GET})
public class SensitiveRefreshController {

    @Autowired
    private SensitiveCacheHandler sensitiveCacheHandler;

    @GetMapping("advise")
    public void advise(){
        sensitiveCacheHandler.loadSensitiveWords();
    }
}
